package com.zhiche.lisa.tms.dao.mapper;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.zhiche.lisa.tms.dao.model.ShipOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 运单 Mapper 接口
 * </p>
 *
 * @author qichao
 * @since 2018-06-18
 */
public interface ShipOrderMapper extends BaseMapper<ShipOrder> {

    /**
     * 根据taskcode得到运单
     * @param shipTaskCode
     * @return
     */
    List<ShipOrder> getShipOrderByTaskCode(@Param("shipTaskCode") String shipTaskCode);

    /**
     * 根据指令号查询商品车数量
     * @param shipSourceKey
     * @return
     */
    Integer selectShipOrderItemCount(@Param("shipSourceKey") String shipSourceKey);
}
